﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ID_card
{
    class CreditCard:Card
    {
        public double Exetral=2000;
        public double Fee=0;

        public void CreditCardPay(double fee)
        {
            if (this.Fee + fee < Exetral)
            {
                this.Fee = this.Fee+fee;
            }
            else
            {
                Console.WriteLine("超出额度，无法支付");
            }
        }

        public CreditCard()
        {
        }


    }
}
